package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.ClassroomInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 930588706
 * @date 18/1/21
 */
public interface ClassroomRepository extends JpaRepository<ClassroomInfo,Integer> {

    /**
     * 根据教室名称模糊查询教室列表（分页）
     * @param classroomName
     * @param pageable
     * @return
     */
    Page<ClassroomInfo> findByClassroomNameLike(String classroomName, Pageable pageable);

    /**
     * 根据名称查询教室
     * @param classroomName
     * @return
     */
    ClassroomInfo findByClassroomName(String classroomName);

}
